<cfif IsDefined("URL.DOCNUMBER")>
	<CFSET DOCNO = #URL.DOCNUMBER#>
<cfelseif IsDefined("URL.DOCNO")>
    <cfquery name="GETDOCNO" datasource="#CLIENT.TRANSACT_DSN#">
    	SELECT DOCNUMBER 
        FROM RAMPMFMAIN
        WHERE ROUTEID ='#URL.DOCNO#'
    </cfquery>
    <CFSET DOCNO = #GETDOCNO.DOCNUMBER#>
</cfif>

<CFIF isDefined("DOCNO")>
    Click the link to view the assessment form. <br /><br />
    
    <a href="##" onClick="javascript:openMaster('<cfoutput>#DOCNO#</cfoutput>');">
    	View Assessment Form
    </a>
</CFIF>
<script type="text/ecmascript">
	
	function openMaster(url) {
		window.open("../../etasks/applications/ramcarpmf/pmf_preprocess.cfm?docnumber=" + url,
					"Competency Assessment Form", "width=1000,height=530,ScrollBars=Yes,Resizable=Yes,copyhistory=no");
	}

</script>
